//
//  VerifyViewController.m
//  作业2
//
//  Created by dllo on 16/7/16.
//  Copyright © 2016年 YMJ. All rights reserved.
//

#import "VerifyViewController.h"

@interface VerifyViewController ()

@end

@implementation VerifyViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor whiteColor];
    // 返回
    self.backButton = [LagouButton createButtonWithTitle:@"返回" backgroundColor:[UIColor clearColor] titleColor:COLOR1 center:CGPointMake(60, 30) frame:CGRectMake(0, 0, 100, 40) borderWidth:0 cornerRadius:0 borderColor:nil];
    [self.view addSubview:_backButton];
    [_backButton addTarget:self action:@selector(back) forControlEvents:UIControlEventTouchUpInside];
    // 验证手机

    [_backButton setImage:[UIImage imageNamed:@"icon_back@3x.png"] forState:0];
    self.vertifyPhone = [LagouLabel createLabelWithTitle:@"验证手机" titleColor:[UIColor blackColor] backgroundColor:[UIColor clearColor] frame:CGRectMake(0, 0, 120, 50) font:[UIFont systemFontOfSize:20] center:CGPointMake(WIDTH / 2, 90) textAlignment:1];
    [self.view addSubview:_vertifyPhone];
    // 两个textField
    LagouView *vertifyView = [LagouView createViewWithImageName1:@"icon_iphone2@3x.png" imageName2:@"icon_identify2@3x.png" string1:@"手机号(仅支持中国大陆号)" string2:@"验证码" identifyString:@"获取验证码" viewframe:CGRectMake(0, 0, WIDTH - 20, 100) center:CGPointMake(WIDTH / 2, HEIGHT / 4) leftViewColor:[UIColor clearColor] textFieldBackgroundColor:[UIColor whiteColor] cursorMove:NO];
    [self.view addSubview:vertifyView];
    // 下一步
    UIButton *button = [UIButton buttonWithType:UIButtonTypeCustom];
    button.frame = CGRectMake(0, 0, WIDTH - 20, 50);
    button.center = CGPointMake(WIDTH / 2, HEIGHT / 2);
    button.backgroundColor = COLOR1;
    [button setTitle:@"下一步" forState:0];
    [button setTitleColor:[UIColor whiteColor] forState:0];
    button.titleLabel.font = [UIFont boldSystemFontOfSize:18];
    [self.view addSubview:button];
    // 邮箱用户找回密码,请
    UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(10, HEIGHT / 2 + 30, WIDTH / 2, 40)];
    label.textColor = [UIColor grayColor];
    label.text = @"邮箱用户找回密码,请";
    [self.view addSubview:label];
    // 点击这里
    UIButton *clickButton = [UIButton buttonWithType:UIButtonTypeCustom];
    clickButton.frame = CGRectMake(WIDTH / 2 - 43, HEIGHT / 2 + 30, 80, 40);
    [clickButton setTitle:@"点击这里" forState:0];
    [clickButton setTitleColor:COLOR1 forState:0];
    clickButton.backgroundColor = [UIColor clearColor];
    [self.view addSubview:clickButton];

}
- (void)back {
    // 返回动画
    CATransition *animation = [CATransition animation];
    animation.duration = 0.3;
    animation.timingFunction = UIViewAnimationCurveEaseInOut;
    animation.type = kCATransitionPush;
    animation.subtype = kCATransitionFromLeft;
    [self.view.window.layer addAnimation:animation forKey:nil];
    [self dismissViewControllerAnimated:NO completion:^{
        
        
    }];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
